<template>
	<view>
		<web-view :src="webUrl"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webUrl: ''
			};
		},

		onLoad() {
			const webUrl = uni.getStorageSync('webUrl') || this.COFIG?.staticUrl; //默认先取缓存中存储的上次可以访问的域名
			const lastStr = webUrl.slice(-1);//判断域名是否带斜杠/
			const privacyPage = lastStr == "/" ? "suggestions.html" : "/suggestions.html"
			this.webUrl = webUrl + privacyPage
		}
	};
</script>

<style scoped lang="scss">

</style>